

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<!--[if gt IE 8]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />        
    <![endif]-->

		<title>编辑${aritcle.title }</title>
		<%@include file="res.jsp"%>
		<%@include file="htmledit.jsp"%>

	</head>

	<body>

		<jsp:include page="header.jsp"></jsp:include>
		<jsp:include page="menu.jsp"></jsp:include>

		<jsp:include page="com_bbs.jsp"></jsp:include>

		<div class="content">

			<div class="row-fluid">

				<div class="span12">

					<div class="widget">
						
						<div class="head dark">
							<div class="icon">
								<i class="icos-pencil2"></i>
							</div>
							<h2>
								编辑[${article.title }]
							</h2>
						</div>
						<form action="page/article_update.action" method="post" id="validate">
						<input type="hidden" name="id" value="${article.id }">
						<div class="block-fluid">

							<div class="row-form">
								<div class="span1">
									标题
								</div>
								<div class="span10">
									<input type="text" value="${article.title }" class="validate[required,maxSize[40]]" name="title" placeholder="请输入标题 ">
								</div>
							</div>
							<div class="row-form">
								<div class="span1">
									描述
								</div>
								<div class="span10">
									<textarea name="describes" class="validate[required,maxSize[500]]"  placeholder="描述">${article.describes }</textarea>
								</div>
							</div>
							<div class="row-form">
								<div class="span1">
									排序
								</div>
								<div class="span10">
									<input type="text" value="${article.sort }" class="validate[required,custom[integer],min[1]]" name="sort" placeholder="文章的重要性">
								</div>
							</div>
							<div class="row-form">
								<div class="span1">
									内容
								</div>
								<div class="span10">
									<textarea name="content"  class="validate[required,minSize[500]]"  style="height: 300px;"
										>${article.content }</textarea>
								</div>
							</div>

							<div class="toolbar bottom TAL">
							   <div class="btn-group">
								<button class="btn btn-primary">
									 修改
								</button>
								</div>
								&nbsp;&nbsp;
								<div class="checker" style="width: 100px;">
									<c:choose>
										<c:when test="${article.isShow == 1}">
											<span class="checked"> 
												<input type="checkbox" name="isShow" value="1" checked="checked">
											</span>可见
										</c:when>
										<c:otherwise>
											<span class="checked"> 
												<input type="checkbox" name="isShow" value="1" >
											</span>可见
										</c:otherwise>
									</c:choose> 
								</div>
							</div>

						</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</body>

</html>
